package com.cy.pj.sys.web.pojo;

import lombok.Data;

@Data
public class JsonResult {
    private Integer state=1;
    private String message="OK";
    private Object data;

    public JsonResult(){}
    public JsonResult(Throwable e){

    }

    public JsonResult(Object data) {
        this.data = data;
    }

    public JsonResult(String message) {
        this.message = message;
    }

    public JsonResult(Integer state) {
        this.state = state;
    }

    public JsonResult(String message, Object data) {
        this.message = message;
        this.data = data;
    }

    public JsonResult(Integer state, String message) {
        this.state = state;
        this.message = message;
    }

    public JsonResult(Integer state, String message, Object data) {
        this.state = state;
        this.message = message;
        this.data = data;
    }
}
